//
//  CommentsViewController.h
//  iShop
//
//  Created by svp on 18/12/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseProduct.h"
#import "TextViewCell.h"

@interface CommentsViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, NSFetchedResultsControllerDelegate,TextViewCellDelegate>{
	UITableView *_tableView;
	BaseProduct *_baseProduct;
	NSFetchedResultsController *_fetchedResultsController;
	BOOL _newPost;
	NSString *_newPostContent;
	BOOL _firstDraw;
	NSArray *commenters;
	NSArray *commentexts;
	NSArray *commentdates;
	NSMutableDictionary *dictionary;
}

@property (nonatomic, retain) NSFetchedResultsController *fetchedResultsController;
@property(nonatomic, retain) IBOutlet UITableView *tableView;
@property(nonatomic, retain) BaseProduct *baseProduct;
@property(nonatomic, retain) IBOutlet UIBarButtonItem *leftButton;
@property(nonatomic, retain) IBOutlet UIBarButtonItem *rightButton;


-(IBAction) cancelPress:(id) sender;
-(IBAction) savePress:(id) sender;

@end
